<html>
	<head>
		<script type="text/javascript" charset="utf-8">
			function onClick(info, tab){
				var url;
				if (info.linkUrl){
					url = info.linkUrl;
				}else if (info.selectionText){
					url = info.selectionText;
				}
				var k = url.indexOf("://");
				if (k==-1){
					url = "http://"+url;
					k = 4;
				}
				k = url.indexOf("/", k+3);
				if (k==-1)k = url.length;
				url = url.slice(0,k)+".sixxs.org"+url.slice(k);
				chrome.tabs.create(
					{"url": url, "selected": true, "index": tab.index}
				);
			}
			chrome.contextMenus.create(
			{	"title":"via Sixxs", 
				"contexts": ["all"],
				"onclick": onClick
			}
			);
		</script>
	</head>
	<body></body>
</html>